{extend name="public/base" /}

<title>{block name="title"}物品信息{/block}</title>
{block name="menu"}
<div>
    <button type="button" class="layui-btn layui-bg-blue" id="add-adminuser">添加分类</button>
</div>
{/block}
{block name="main"}
<!-- 右侧主信息 -->
<div class="con-box" style="padding: 10px;">
    <table class="layui-hide" id="user-data" lay-filter="user-data"></table>
</div>
<div id="add-box" style="display: none;">
    <form class="layui-form" action="" lay-filter="demo-val-filter">
        <input type="hidden" name="userid">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">分类名称</label>
                <div class="layui-input-inline">
                    <input type="text" name="title" placeholder="请输入" lay-verify="required" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">类型图片</label>
                <div class="layui-input-inline">
                    <input type="text" name="image" class="layui-input" lay-verify="required" placeholder="请输入商品数量"
                        value="">
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">类型说明</label>
            <div class="layui-input-block">
                <textarea name="remark" placeholder="请输入内容" class="layui-textarea"></textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="submit" class="layui-btn" lay-submit lay-filter="btn-save">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>
{/block}
{block name="javascript"}
<script>
    var controllername = 'admin/api_node';
    var title = '{$title}';
    var filterArray = ["title","node","remark","id"];
    var area = ["400px", "350px"];
    var cols = [ //标题栏
        { type: 'checkbox', fixed: 'left' },
        { field: 'id', title: 'ID', width: 80, sort: true },
        { field: 'title', title: '名称', width: 120 },
        { field: 'node', title: '节点', width: 250 },
        { field: 'create_time', title: '创建时间', width: 200 },
        { fixed: 'right', title: '操作', width: 134, minWidth: 125, templet: '#toolDemo' }
    ]

</script>
{/block}